HAL SPDIFRX state and error functions migration

This section provides information about the HAL SPDIFRX state and error functions migration.

HAL SPDIFRX get state

HAL1

HAL2

HAL_SPDIFRX_GetState(SPDIFRX_HandleTypeDef const *const hspdif);
HAL_SPDIFRX_GetState(const hal_spdifrx_handle_t *hspdifrx);

Note

In HAL2, two new APIs are provided to get the current data and control states separately:


HAL_SPDIFRX_GetDataState(const hal_spdifrx_handle_t *hspdifrx);
HAL_SPDIFRX_GetControlState(const hal_spdifrx_handle_t *hspdifrx);

Related concept:


HAL SPDIFRX get error code

HAL1

HAL2

HAL_SPDIFRX_GetError(const SPDIFRX_HandleTypeDef *hspdifrx);
HAL_SPDIFRX_GetLastErrorCodes(const hal_spdifrx_handle_t *hspdifrx);

Related concept: